Determine whether a combo box has the default user interface or the extended user interface
#Include <GuiCombo.au3>
_GUICtrlComboGetExtendedUI($h_combobox)
Parameters
$h_combobox | control id/control hWnd |
Return Value
Success: | Returns TRUE if the combo box has the extended user interface. |
Failure: | Returns FALSE otherwise. |
Remarks
By default, the F4 key opens or closes the list and the
Related
_GUICtrlComboSetExtendedUI
Example
#include <GuiConstants.au3>
#include <GuiCombo.au3>
Opt('MustDeclareVars',1)
Dim $Combo,$Btn_Exit,$Status,$msg,$Btn_Standard,$Btn_Extended,$state,$current
GuiCreate("ComboBox Get Extended UI", 392, 254)
$Combo = GuiCtrlCreateCombo("", 70, 10, 270, 120)
GUICtrlSetData($Combo,"AutoIt|v3|is|freeware|BASIC-like|scripting|language")
$Btn_Standard = GuiCtrlCreateButton("Standard", 75, 90, 90, 30)
$Btn_Extended = GuiCtrlCreateButton("Extended", 200, 90, 90, 30)
$Btn_Exit = GuiCtrlCreateButton("Exit", 150, 180, 90, 30)
$Status = GUICtrlCreateLabel("",0,234,392,20,BitOR($SS_SUNKEN,$SS_CENTER))
$current = Not $state
GuiSetState()
While 1
$msg = GuiGetMsg()
Select
Case $msg = $GUI_EVENT_CLOSE Or $msg = $Btn_Exit
ExitLoop
Case $msg = $Btn_Standard
_GUICtrlComboSetExtendedUI($Combo, 0)
Case $msg = $Btn_Extended
_GUICtrlComboSetExtendedUI($Combo, 1)
Case Else
$state = _GUICtrlComboGetExtendedUI($Combo)
If($state And $state <> $current) Then
$current = $state
GUICtrlSetData($Status,"Extend UI: True")
ElseIf($state <> $current) Then
$current = $state
GUICtrlSetData($Status,"Extend UI: False")
EndIf
EndSelect
WEnd
Exit